import axios from '@/api/interceptor';
import { WebsiteConfig } from './types';

export const selectWebConfig = async () => {
  const result = await axios({
    url: '/webconfig/selectWebConfig',
    method: 'GET',
  });
  return result.data;
};

export const saveWebConfig = async (data: WebsiteConfig) => {
  const result = await axios({
    url: '/webconfig/saveWebConfig',
    method: 'POST',
    data,
  });
  return result.data;
};
